package com.lg.erp.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lg.erp.entity.SCompany;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lg
 * @since 2021-04-20
 */
public interface ISCompanyService extends IService<SCompany> {

    IPage<SCompany> getCompanyByPage(Page<SCompany> page);

    IPage<SCompany> getCompanyByCompanyNameAndPage(String keyWord,
            String province,String city,String area,Page<SCompany> page);
//旧方法不适用
    IPage<SCompany> getSupplierByPage(Page<SCompany> page);
//旧方法不适用
    IPage<SCompany> getSupplierByCompanyNameAndPage(String s, String s1, String s2, String s3, Page<SCompany> page);
//新方法
    IPage<SCompany> getSupplierByPageAndCompanyId(Page<SCompany> page, String companyId);
//新方法
    IPage<SCompany> getSupplierBySupplierNameAndPage(String keyWord, String province, String city, String area, Page<SCompany> page,String companyId);

}
